<?php

// mbilling/BillingBundle/Entity/domainsZones.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity
 */
class domainsZones
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="float")
     * @assert\NotBlank
     * @assert\Type("numeric")
     */
    protected $reg_cost;
    
    /**
     * @ORM\Column(type="float")
     * @assert\NotBlank
     * @assert\Type("numeric")
     */
    protected $ext_cost;

    /**
     * @ORM\Column(type="string", length=45)
     * @assert\NotBlank
     */
    protected $name;

    /**
     * @ORM\Column(type="string", length=45)
     * @assert\NotBlank
     */
    protected $url;

    /**
     * @ORM\Column(type="string", length=25)
     * @assert\NotBlank
     */
    protected $not_found_string;
    
    /**
     * @ORM\Column(type="boolean")
     */
    protected $is_active;
    
    /**
     * @ORM\Column(type="integer")
     * @assert\NotBlank
     * @assert\Type("numeric")
     */
    protected $gateway_id;
    
    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setRegCost($reg_cost)
    {
        $this->reg_cost = $reg_cost;
    }
    public function getRegCost()
    {
        return $this->reg_cost;
    }
    
    public function setExtCost($ext_cost)
    {
        $this->ext_cost = $ext_cost;
    }
    public function getExtCost()
    {
        return $this->ext_cost;
    }

    public function setName($name)
    {
        $this->name = $name;
    }
    public function getName()
    {
        return $this->name;
    }

    public function setUrl($url)
    {
        $this->url = $url;
    }
    public function getUrl()
    {
        return $this->url;
    }

    public function setNotFoundString($not_found_string)
    {
        $this->not_found_string = $not_found_string;
    }
    public function getNotFoundString()
    {
        return $this->not_found_string;
    }
    
    public function setIsActive($is_active)
    {
        $this->is_active = $is_active;
    }
    public function getIsActive()
    {
        return $this->is_active;
    }

    public function setGatewayId($gateway_id)
    {
        $this->gateway_id = $gateway_id;
    }
    public function getGatewayId()
    {
        return $this->gateway_id;
    }
    public function initDefaultEntity()
    {
        $this->setRegCost('25.5');
        $this->setExtCost('13.5');
        $this->setUrl('whois.ripn.ru');
        $this->setNotFoundString('No entries found');
        $this->setIsActive('1');
        $this->setGatewayId('1');
        return $this;
    }
}
?>
